package com.redis.controller;

import com.redis.service.PreheatService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: 13205
 * @Date: 2024/12/23 21:18
 * @Description:
 */

@RestController
@RequestMapping("/preheat")
public class PreheatController {
    @Autowired
    private PreheatService preheatService;

    @GetMapping("/allConcert")
    public String preheatAllConcert() {
        preheatService.preheatAllConcertData();
        return "预热完成";
    }

    @GetMapping("/concert")
    public String preheatConcert(Integer cid) {
        preheatService.preheatConcertData(cid);
        return "预热完成";
    }
}
